export class Result<T> {
  code: string;

  msg: string;

  data: T;

  constructor(code: string, msg: string, data: T) {
    this.code = code;
    this.msg = msg;
    this.data = data;
  }
  //   success(data: T) {
  //     this.code = '200';
  //     this.data = data;
  //     this.msg = 'successful';
  //   }
}
